export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "dialogClickModal": false,
  "searchMenuSpan": 6,
  searchShow: false,
  "column": [
	  {
      "type": "input",
      "label": "编号",
      "prop": "id",
      "span": 12,
      hide: true,
      addDisplay: false,
      editDisplay: false,
    },	  {
      "type": "input",
      "label": "办公用品名称",
      searchLabelWidth: 120,
      maxlength: 128,
      labelWidth: 120,
      "prop": "name",
      "span": 24,
      search: true,
      rules: [{
        required: true,
        message: '请输入办公用品名称',
        trigger: 'blur'
      }]
    },	  {
      "type": "select",
      "label": "类别",
      labelWidth: 120,
      "prop": "categoryId",
      "span": 12,
      rules: [{
        required: true,
        message: '请选择类别',
        trigger: 'change'
      }]
    },	  {
      "type": "select",
      "label": "类型",
      "prop": "type",
      dicUrl: '/admin/dict/type/officegoods_type',
      "span": 12,
      hide: true,
      addDisplay: false,
      editDisplay: false
    },	  {
      "type": "input",
      "label": "拼音缩写",
      "prop": "pinyin",
      maxlength: 50,
      search: true,
      "span": 12
    },	  {
      "type": "number",
      "label": "库存最小数量",
      "prop": "minAmount",
      maxRows: 1000000,
      "span": 7,
      labelWidth: 120,
      value: 3,
      rules: [{
        required: true,
        message: '请输入库存最小数量',
        trigger: 'blur'
      }]
    },	  {
      "type": "number",
      "label": "限额数量",
      "prop": "limitAmount",
      "span": 7,
      maxRows: 1000000,
      value: null,
      // rules: [{
      //   required: true,
      //   message: '请输入限额数量',
      //   trigger: 'blur'
      // }]
    },	  {
      "type": "number",
      "label": "排序",
      "prop": "sort",
      hide:true,
      value: 1,
      rules: [{
        required: true,
        message: '请输入排序',
        trigger: 'blur'
      }],
      "span": 7
    },	  {
      "type": "radio",
      "label": "库存告警",
      "prop": "stockAlert",
      value: '1',
      labelWidth: 120,
      "span": 12,
      hide: true,
      dicUrl: '/admin/dict/type/use_status'
    },	  {
      "type": "radio",
      "label": "公开状态",
      "prop": "status",
      "span": 12,
      value: '1',
      search: true,
      dicUrl: '/admin/dict/type/public_status'
    },	  {
      "type": "input",
      "label": "编码",
      labelWidth: 120,
      "prop": "no",
      hide: true,
      maxlength: 24,
      "span": 7
    },	  {
      "type": "input",
      "label": "规格",
      "prop": "spec",
      maxlength: 48,
      "span": 7
    },	  {
      "type": "input",
      "label": "单位",
      maxlength: 24,
      "prop": "unit",
      "span": 7
    },	  {
      "type": "textarea",
      "label": "备注",
      labelWidth: 120,
      hide:true,
      maxlength: 240,
      "prop": "remark",
      "span": 24
    },	  {
      type: 'upload',
      width: 140,
      labelWidth: 120,
      loadText: '附件上传中，请稍等',
      listType:'picture-img',
      accept: ["image/png","image/jpeg","image/jpg"],
      tip: '只能上传jpg，png图片不超过20MB',
      fileSize: 20480,
      propsHttp: {
          res: 'data'
      },
      canvasOption: {
        text: ' ',
        ratio: 0.1
      },
      action: "/act/file/upload",
      "label": "图片",
      "prop": "cover",
    },	  {
      "type": "input",
      maxlength: 48,
      "label": "录入人",
      "prop": "createRealname",
      "span": 12,
      editDisabled: true,
      addDisplay: false
    },	  {
      "type": "input",
      "label": "创建部门",
      "prop": "deptName",
      hide: true,
      "span": 12,
      editDisabled: true,
      addDisplay: false
    },    {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      "span": 12,
      hide: true,
      editDisabled: true,
      addDisplay: false
    },	  {
      "type": "input",
      "label": "更新时间",
      "prop": "updateTime",
      hide:true,
      "span": 12,
      editDisabled: true,
      addDisplay: false
    }  ]
}
